<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>注册账号</title>
		<!--引入jquery资源-->
		<script src="${basePath}static/add_resource/js/bootstrap-3.3.7-dist/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<!--引入bootstrap核心css-->
		<link rel="stylesheet" type="text/css" href="${basePath}static/add_resource/js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<!--引入bootstrap核心js-->
		<script src="${basePath}static/add_resource/js/bootstrap-3.3.7-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<form class="form-horizontal" action="${basePath }doUpdateOpInfo" method="post" >
			<div class="form-group">
			<!-- 隐藏表单域：将修改数据的id发回到后台进行修改保存 -->
			<input type="hidden" id="opId" name="opId" value="${sessionScope.opB.opId }">
			</div>
			<div class="form-group">
				<label for="opName" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="opName" name="opName" value="${sessionScope.opB.opName }" placeholder="请输入用户名">
				</div>
				<label for="opPsw" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-3">
					<input type="password" class="form-control" id="opPsw" name="opPsw" value="${sessionScope.opB.opPsw }" placeholder="请输入密码">
				</div>
			</div>
			<div class="form-group">
				<label for="opRealName" class="col-sm-2 control-label">真实姓名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="opRealName" name="opRealName" value="${sessionScope.opB.opRealName }" placeholder="请输入真实姓名">
				</div>
				<label for="opDot" class="col-sm-2 control-label">所属网点</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="opDot" name="opDot" value="${sessionScope.opB.opDot }" placeholder="请输入所属网点">
				</div>
			</div>
			<div class="form-group">
				<label for="opSex" class="col-sm-2 control-label">性别</label>
				<div class="col-sm-3">
					<label class="radio-inline">
  						<input type="radio" name="opSex" id="opSex1" <c:if test="${sessionScope.opB.opSex == '男' }">checked</c:if> value="男"> 男
					</label>
					<label class="radio-inline">
						<input type="radio" name="opSex" id="opSex2" <c:if test="${sessionScope.opB.opSex == '女' }">checked</c:if> value="女"> 女
					</label>
				</div>
				<label for="opPower" class="col-sm-2 control-label">权限</label>
				<div class="col-sm-3">
					<label class="radio-inline">
  						<input type="radio" name="opPower" id="opPower1" <c:if test="${sessionScope.opB.opPower == 0 }">checked</c:if> value="0"> 操作员
					</label>
					<label class="radio-inline">
						<input type="radio" name="opPower" id="opPower2" <c:if test="${sessionScope.opB.opPower == 1 }">checked</c:if> value="1"> 管理员
					</label>
				</div>
			</div>
			<div class="form-group">
				<label for="opTel" class="col-sm-2 control-label">电话</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="opTel" name="opTel" value="${sessionScope.opB.opTel }" placeholder="请输入电话">
				</div>
				
				<!-- <label for="opHead" class="col-sm-2 control-label">头像</label>
				<div class="col-sm-3">
					<input type="file" class="form-control" id="opHead" name="opHeadfile" >
				</div> -->
				
			</div>
			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-1">
					<button type="submit" class="btn btn-default">修&nbsp;&nbsp;改</button>
				</div>
				<div class="col-sm-offset-1 col-sm-1">
					<button type="reset" class="btn btn-default">取&nbsp;&nbsp;消</button>
				</div>
			</div>
		</form>
	</body>
</html>